From: Keir Fraser Date: Mon, 31 Aug 2009 09:14:26 +0000 (+0100) Subject: libxc: Avoid a constant-zero-sized memset(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13403 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=bc05036624e0e7f0cf362b82f4cbb5cf5ab8eb6b;p=xen.git libxc: Avoid a constant-zero-sized memset(). Some environments warn about this, which fails the build. Signed-off-by: Keir Fraser --- diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 8121a08bf0..0c226ac7b2 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -321,7 +321,8 @@ elfnote_dump_none(void *args, dumpcore_rtn_t dump_rtn) struct xen_dumpcore_elfnote_none_desc none; elfnote_init(&elfnote); - memset(&none, 0, sizeof(none)); + /* Avoid compile warning about constant-zero-sized memset(). */ + /*memset(&none, 0, sizeof(none));*/ elfnote.descsz = sizeof(none); elfnote.type = XEN_ELFNOTE_DUMPCORE_NONE;